package com.sunmall.service;

import com.github.pagehelper.PageInfo;
import com.sunmall.common.ServerResponse;
import com.sunmall.pojo.Product;
import com.sunmall.vo.ProductDetailVo;

/**
 * @description:
 * @author: mingtai
 * @createDate: 8:29 2020/3/11
 * @version: 1.0
 */

public interface IProductService {

    ServerResponse saveOrUpdateProduct(Product product);

    ServerResponse<String> setSaleStatus(Integer productId, Integer status);

    ServerResponse<ProductDetailVo> manageProductDetail(Integer productId);

    ServerResponse<PageInfo> getProductList(int pageNum, int pageSize);

    ServerResponse<PageInfo> searchProduct(String productName, Integer productId, int pageNum, int pageSize);

    ServerResponse<ProductDetailVo> getProductDetail(Integer productId);

    ServerResponse<PageInfo> getProductByKeywordCategory(String keyword, Integer categoryId, int pageNum, int pagesize, String orderBy);

}
